package com.atguigu.spzx.manager.entity;

import com.atguigu.spzx.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author flyduck
 * @since 2023-11-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Product对象", description="商品")
public class Product extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "品牌ID")
    private Long brandId;

    @ApiModelProperty(value = "一级分类id")
    private Long category1Id;

    @ApiModelProperty(value = "二级分类id")
    private Long category2Id;

    @ApiModelProperty(value = "三级分类id")
    private Long category3Id;

    @ApiModelProperty(value = "计量单位")
    private String unitName;

    @ApiModelProperty(value = "轮播图")
    private String sliderUrls;

    @ApiModelProperty(value = "商品规格json")
    private String specValue;

    @ApiModelProperty(value = "线上状态：0-初始值，1-上架，-1-自主下架")
    private Integer status;

    @ApiModelProperty(value = "审核状态：0-初始值，1-通过，-1-未通过")
    private Integer auditStatus;

    @ApiModelProperty(value = "审核信息")
    private String auditMessage;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    private Integer isDeleted;


}
